# -*- encoding: utf-8 -*-
import requests


def get_url(url, params=None, proxies=None):
    rsp = requests.get(url, params=params, proxies=proxies)
    rsp.raise_for_status()
    return rsp.text

def get_data(FullCode, params=None, proxies=None):
	url = "http://qt.gtimg.cn/q=" + FullCode
	rsp = requests.get(url, params=params, proxies=proxies)
	rsp.raise_for_status()
	return rsp.text

def 上海Url(code):
	url = "http://qt.gtimg.cn/q=sh" + code
	return url

def 深圳Url(code):
	url = "http://qt.gtimg.cn/q=sz" + code
	return url


data = get_data("sh000001")
print(data.split("~"))

